package com.xhy.feign;

import com.xhy.entity.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("category-module")
public interface CategoryClients {
    @GetMapping("/category/selectOne/{id}")
    public Category selectById(@PathVariable("id") Integer id);
}
